﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using Team6_Algorithms.HighEnd;

namespace VisionApplication
{
    class CannyEdgeAlgo : VisionAlgorithm
    {
        

        public CannyEdgeAlgo(String name, string[] required) : base(name, required) {
            
        }

        public override System.Drawing.Bitmap DoAlgorithm(System.Drawing.Bitmap sourceImage, Object obj)
        {
           

            CannyEdge Can = new CannyEdge();
            Bitmap returnImage = Can.Run(sourceImage);
           // CannyEdge.makeBlackNWhite(returnImage);
            this.Image = returnImage;
            return returnImage;

        }
    }
}